package org.luckyjourney.entity.booking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("booking")
public class Booking implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("咨询师id")
    private Long userId;

    @ApiModelProperty("用户id")
    private Long regularId;

    private Integer planId;

    @ApiModelProperty("发布日期日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonIgnore
    private LocalDateTime createTime;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("1(待核销)2已完成")
    private Integer bookingStatus;

    @ApiModelProperty("咨询的类型")
    private Integer planTypeId;


}
